﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReverseString
{
    class Program
    {
        static void Main(string[] args)
        {
            string myString = Console.ReadLine();
            char[] myChar = myString.ToCharArray();
            char[] revChar=new char[myChar.Length];
            for (int  c = 0, d=myChar.Length-1 ; c < myChar.Length  ; c++,d--)
            {

                revChar[c] = myChar[d];
                Console.WriteLine(revChar[c].ToString());
            }
           
            Console.WriteLine(revChar);
            Console.ReadLine();
           
        }
    }
}
